﻿using MahApps.Metro.IconPacks;
using System.Windows;
using System.Windows.Controls;

namespace Fitness_tracker.UserControls
{
    /// <summary>
    /// InfoCard.xaml 的交互逻辑
    /// </summary>
    public partial class InfoCard : UserControl
    {
        public InfoCard()
        {
            InitializeComponent();
        }
        public string Title
        {
            get { return (string)GetValue(TitlePorperty); }
            set { SetValue(TitlePorperty, value); }
        }
        public static readonly DependencyProperty TitlePorperty = DependencyProperty.Register("Title", typeof(string), typeof(InfoCard));
        public string Desc
        {
            get { return (string)GetValue(DescPorperty); }
            set { SetValue(DescPorperty, value); }
        }
        public static readonly DependencyProperty DescPorperty = DependencyProperty.Register("Desc", typeof(string), typeof(InfoCard));
        public string Percentage
        {
            get { return (string)GetValue(PercentagePorperty); }
            set { SetValue(PercentagePorperty, value); }
        }
        public static readonly DependencyProperty PercentagePorperty = DependencyProperty.Register("Percentage", typeof(string), typeof(InfoCard));
        public string BottomText
        {
            get { return (string)GetValue(BottomTextPorperty); }
            set { SetValue(BottomTextPorperty, value); }
        }
        public static readonly DependencyProperty BottomTextPorperty = DependencyProperty.Register("BottomText", typeof(string), typeof(InfoCard));
        public string Days
        {
            get { return (string)GetValue(DaysPorperty); }
            set { SetValue(DaysPorperty, value); }
        }
        public static readonly DependencyProperty DaysPorperty = DependencyProperty.Register("Days", typeof(string), typeof(InfoCard));
        public int Value
        {
            get { return (int)GetValue(ValuePorperty); }
            set { SetValue(ValuePorperty, value); }
        }
        public static readonly DependencyProperty ValuePorperty = DependencyProperty.Register("Value", typeof(int), typeof(InfoCard));
        public bool IsActive
        {
            get { return (bool)GetValue(IsActivePorperty); }
            set { SetValue(IsActivePorperty, value); }
        }
        public static readonly DependencyProperty IsActivePorperty = DependencyProperty.Register("IsActive", typeof(bool), typeof(InfoCard));
        public PackIconMaterialKind Icon
        {
            get { return (PackIconMaterialKind)GetValue(IconPorperty); }
            set { SetValue(IconPorperty, value); }
        }
        public static readonly DependencyProperty IconPorperty = DependencyProperty.Register("Icon", typeof(PackIconMaterialKind), typeof(InfoCard));
    }
}
